package com.xbx.admin;

import com.xbx.admin.annotation.EnableUserInfoTransmitter;
import feign.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
@MapperScan("com.xbx.admin.mapper")
@EnableSwagger2
@EnableCaching
@EnableScheduling
@EnableUserInfoTransmitter
public class XsxAdminApplication {

    public static void main(String[] args) {
       SpringApplication.run(XsxAdminApplication.class, args);
    }

    @Bean
    Logger.Level feignLoggerLever(){

        return Logger.Level.FULL;
    }
}
